<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>${goodsCat.catTitle}</title>
		<meta content="${goodsCat.catKeyword}" name="keywords" />
		<meta content="${goodsCat.catDescription}" name="description" />
		<%@ include file="/jsp/front/common/header.jsp"%>
	</head>
	<body>
		<%@ include file="/jsp/front/common/nav.jsp"%>
		<div id="MainWrap">
			<div id="LeftColumn">
				<%@ include file="/jsp/front/common/catList.jsp"%>
				<%@ include file="/jsp/front/common/viewHistory.jsp"%>
			</div>

			<div id="Main">
				<div id="Main">
					<!--					<div id="" class="border6">-->
					<!--						<div class="AdvBanner">-->
					<!--							<a href=""><img src="">-->
					<!--							</a>-->
					<!--						</div>-->
					<!--						<div class="clear h8"></div>-->
					<!--					</div>-->
					<div id="325">
						<div class="Navigation">
							您当前的位置：
							<span>首页</span>
							<c:forEach items="${navCats}" var="navCat" varStatus="index">
								<span>»</span>
								<c:if test="${!index.last}">
									<a href="dp_cat_get.html?filter=${navCat.catId}">${navCat.catName}</a>
								</c:if>
								<c:if test="${index.last}">
									<span class="now">${navCat.catName}</span>
								</c:if>
							</c:forEach>
						</div>
					</div>
					<div class="clear"></div>
					<div class="GoodsSearchWrap">
						<form id="selector-form" action="?search-result.html" method="post" style="display: block;">
							<input type="hidden" value="" name="filter" />
							<input type="hidden" value="9" name="cat_id" />
							<div class="GoodsSelector division boxGray" style="display: block;">
								<div class="division boxBrown" style="display: block;">
									<table>
										<tbody>
											<tr>
												<td style="padding-right: 6px; width: 72px; white-space: nowrap;" class="textright">
													分类名称：
												</td>
												<td style="line-height: 22px; white-space: normal;">
													<c:forEach items="${goodsCats}" var="cat">
														<a href="dp_cat_get.html?filter=${cat.catId}">${cat.catName}</a>
													</c:forEach>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
								<div id="selector_contents" class="division" style="display: block;">
									<table width="100%">
										<tbody>
											<tr>
												<td style="padding-right: 6px; width: 72px; white-space: nowrap;" class="textright">
													品牌：
												</td>
												<td style="border-bottom: 1px solid rgb(238, 238, 238); line-height: 22px;">
													<c:forEach items="${goodsFilterParameter.goodsBrands}" var="brand">
														<a href="dp_cat_get.html?filter=${goodsFilterParameter.brandFilterString}" <c:if test="${goodsFilterParameter.selectedBrandId eq brand.brandId}">class="filter_selected" </c:if>>${brand.brandName}</a>
													</c:forEach>
												</td>
											</tr>
											<c:forEach items="${goodsFilterParameter.goodsTypeAttributes}" var="attr">
												<tr>
													<td style="padding-right: 6px; width: 72px; white-space: nowrap;" class="textright">
														${attr.name }：
													</td>
													<td style="border-bottom: 1px solid rgb(238, 238, 238); line-height: 22px;">
														<c:forEach items="${attr.optionsStr}" var="option" varStatus="optionIndex">
															<a href="dp_cat_get.html?filter=${goodsFilterParameter.attrFilterString}" <c:if test="${goodsFilterParameter.currentAttrIndex eq optionIndex.index}">class="filter_selected" </c:if>>${option}</a>
														</c:forEach>
													</td>
												</tr>
											</c:forEach>


										</tbody>
									</table>
								</div>
								<div id="goods-spec-content-flat" class="division" style="display: block;">
									<table width="100%" class="goods-spec">
										<tbody>
											<c:forEach items="${goodsFilterParameter.goodsSpecifications}" var="spec">

												<tr>
													<td style="padding-right: 6px; width: 72px; white-space: nowrap;" class="textright">
														${spec.specName }：
													</td>
													<td class="flatshow" style="border-bottom: 1px solid rgb(238, 238, 238); line-height: 22px;">
														<ul>
															<c:forEach items="${spec.goodsSpecValues}" var="value" varStatus="valueIndex">
																<li>
																	<a href="dp_cat_get.html?filter=${goodsFilterParameter.specFilterString}" <c:if test="${goodsFilterParameter.currentSpecValueId eq value.specValueId }">class="selected"</c:if>> <c:if
																			test="${valueIndex.first||spec.specType ==1}">
																			<span>${value.specValue}</span>
																		</c:if> <c:if test="${!valueIndex.first && spec.specType ==2}">
																			<img width="20" height="20" src="${value.specImage}" />
																		</c:if> </a>
																</li>
															</c:forEach>
														</ul>
													</td>
												</tr>
											</c:forEach>
										</tbody>
									</table>
								</div>

							</div>

						</form>
						<div id="gallerybar" class="title " style="width: auto; margin: 15px 0;">

							<table width="100%" cellspacing="0" cellpadding="0">

								<tr>
									<td>
										${pagerString }
									</td>
									<td>
										<div class="listorder">
											<a
												<c:if test="${goodsFilterParameter.orderBy eq 'price'}">
													class="list_asc_on"
													href="dp_cat_get.html?filter=${goodsFilterParameter.basicString}price-desc,${goodsFilterParameter.displayType}"
												</c:if>
												<c:if test="${goodsFilterParameter.orderBy eq 'price-desc'}">
												class="list_desc_on"
												href="dp_cat_get.html?filter=${goodsFilterParameter.basicString}price-asc,${goodsFilterParameter.displayType}"
												</c:if>
												<c:if test="${goodsFilterParameter.orderBy != 'price' and goodsFilterParameter.orderBy != 'price-desc'}">
												class="list_asc"
												href="dp_cat_get.html?filter=${goodsFilterParameter.basicString}price-asc,${goodsFilterParameter.displayType}"
												</c:if>><i>价格</i>
											</a>
											<a href="dp_cat_get.html?filter=${goodsFilterParameter.basicString}buyCount,${goodsFilterParameter.displayType}"
												class="list_desc<c:if test="${goodsFilterParameter.orderBy eq 'buyCount' }">_on</c:if>"><i>销量</i> </a>
											<a href="dp_cat_get.html?filter=${goodsFilterParameter.basicString}viewCount,${goodsFilterParameter.displayType}"
												class="list_desc<c:if test="${goodsFilterParameter.orderBy eq 'viewCount' }">_on</c:if>"><i>人气</i> </a>
										</div>
									</td>


									<td>
										共
										<font color="red">${totalRecord}</font>个商品
									</td>
								</tr>
							</table>
						</div>
						<c:if test="${goodsFilterParameter.displayType eq 'index'}">
							<%@ include file="/jsp/front/common/goodsIndexList.jsp"%>
						</c:if>
						<c:if test="${goodsFilterParameter.displayType eq 'grid'}">
							<%@ include file="/jsp/front/common/goodsGridList.jsp"%>
						</c:if>

					</div>


				</div>




				<div class="clearfix" style="clear: both;">
					${pagerString }
				</div>
			</div>
		</div>
		<%@ include file="/jsp/front/common/footer.jsp"%>


	</body>
</html>